<?php

/**
 * 购物车
 */

namespace app\order\mobile;

class CartMobile extends \app\order\common\CartCommon {


    public function index() {
        parent::index();
    }

    public function submit() {
        parent::submit();
    }

    public function num() {
        parent::num();
    }

    public function del() {
        parent::del();
    }

    public function getJson() {
        $info = target('order/Cart', 'service')->getCart($this->userInfo['user_id']);
        if(!empty($info)) {
            $this->success($info);
        }else {
            $this->error('购物车为空！');
        }
    }




}